package com.example.wastewater.common.enums;


import com.example.wastewater.common.convention.errorcode.IErrorCode;

public enum UserErrorCode implements IErrorCode {
    USER_TOKEN_FAIL("A000100", "用户Token验证失败"),
    USER_EMAIL_NOT_EXIST_ERROR("B000100", "用户邮箱不存在"),
    USER_SAVE_ERROR("B000101", "用户保存失败"),
    USER_LOGIN_NAME_PASS_ERROR("B000102", "用户邮箱不存在或者密码错误"),
    USER_LOGIN_ERROR("B000103", "用户登录错误"),
    USER_NOT_LOGIN_ERROR("B000104", "用户还未登录"),
    USER_UPDATE_ERROR("B000105", "只能修改当前用户信息")
    ;



    private final String code;

    private final String message;

    UserErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
